from django.db import models


class AbstractBase(models.Model):
    created_at = models.DateTimeField(auto_now_add=True, db_index=True)
    updated_at = models.DateTimeField(auto_now=True, db_index=True)
    deleted_at = models.DateTimeField(null=True, db_index=True)
    deleted = models.BooleanField("是否删除", default=False)

    class Meta:
        abstract = True
